package com.lfy.modules.disk.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName disk_share_detail
 */
@TableName(value ="disk_share_detail")
@Data
public class DiskShareDetailEntity implements Serializable {
    /**
     * 
     */
    @TableId(value = "id")
    private Long id;
    @TableField(value = "file_id")
    private Long fileId;

    /**
     * 提取码
     */
    @TableField(value = "share_code")
    private String shareCode;

    /**
     * 是否限制人数，0-不限制，1-限制
     */
    @TableField(value = "share_limit_type")
    private Integer shareLimitType;

    /**
     * 限制人数
     */
    @TableField(value = "share_limit_num")
    private Integer shareLimitNum;
    /**
     * 限制剩余次数
     */
    @TableField(value = "share_limit_surplus")
    private Integer shareLimitSurplus;

    /**
     * 过期时间；0-永久；1-30天；2-7天；3-1天
     */
    @TableField(value = "share_time_type")
    private Integer shareTimeType;

    /**
     * 创建时时间戳
     */
    @TableField(value = "time_stamp_save")
    private Long timeStampSave;

    /**
     * 
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 创建人id
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    @TableField(value = "share_url")
    private String shareUrl;

    @TableField(value = "share_uri")
    private String shareUri;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}